package com.jsh.erp.datasource.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jsh.erp.datasource.entities.Bom;
import com.jsh.erp.datasource.vo.BomVo4List;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BomMapper extends BaseMapper<Bom> {
    List<BomVo4List> findByConditionBom(@Param("bomParam") String bomParam,
                                        @Param("categoryIds") List<Long> categoryIds,
                                        @Param("offset") Integer offset,
                                        @Param("rows") Integer rows);

    Long countConditionBom(@Param("bomParam") String bomParam,
                           @Param("categoryIds") List<Long> categoryIds);


    int deleteBatch(@Param("ids") String[] ids);
}